/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rcfi.lankaweb.linklk.model;

import com.rcfi.lankaweb.linklk.domain.country;
import com.rcfi.lankaweb.linklk.domain.countrycode;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Future;
//import org.hibernate.validator.constraints.Email;
//import org.hibernate.validator.constraints.Length;
//import org.hibernate.validator.constraints.Range;

/**
 *
 * @author priyantha
 */
public class user {

    private String firstName, lastName, email, password, confirmPassword, gender, date, month, year, nic, street, city, country, np, datum1, countrycode;
    private List<country> countryList;
    private List<countrycode> countryCodeList;
    private int mobile;
    private boolean emailsub = true;
    private boolean smssub = true;

    //getters
    public String getDatum1() {
        return datum1;
    }

    @NotNull
    public String getCountrycode() {
        return countrycode;
    }

    @NotNull
    @Valid
    public List<countrycode> getCountryCodeList() {
        return countryCodeList;
    }

    @NotNull
    public String getNp() {
        return np;
    }

    public boolean isEmailsub() {
        return emailsub;
    }

    public boolean isSmssub() {
        return smssub;
    }

    @NotNull
    @Valid
    public List<country> getCountryList() {
        return countryList;
    }

    @NotNull(message="gfrsdjkg")
    //@Length(min = 2, max = 20)
    public String getFirstName() {

        return firstName;
    }

//    @NotNull
//    @Length(min = 2, max = 20)
    public String getLastName() {

        return lastName;
    }

//    @NotNull
//    @Length(min = 6)
    public String getPassword() {

        return password;
    }

    public String getCity() {
        return city;
    }

//    @NotNull
//    @Valid  //for password matching
    public String getConfirmPassword() {
        return confirmPassword;
    }

    @NotNull
    public String getCountry() {
        return country;
    }

//    @NotNull
//    @Range(min = 01, max = 31)
    public String getDate() {
        return date;
    }

    @NotNull
    public String getGender() {
        return gender;
    }

    @NotNull
    public String getNic() {
        return nic;
    }

    public String getStreet() {
        return street;
    }

//    @NotNull
//    @Range(min = 01, max = 12)
    public String getMonth() {
        return month;
    }

    @NotNull
    @Future
    public String getYear() {
        return year;
    }

//    @Email
//    @NotNull
    public String getemail() {

        return email;
    }

//    @NotNull
//    @Length(max = 9, message = "{long}")
    public int getMobile() {

        return mobile;
    }

//    setters
    public void setDatum1(String datum1) {
        this.datum1 = datum1;
    }

    public void setNp(String np) {
        this.np = np;
    }

    public void setSmssub(boolean smssub) {
        this.smssub = smssub;
    }

    public void setEmailsub(boolean emailsub) {
        this.emailsub = emailsub;
    }

    public void setCountryCodeList(List<countrycode> countryCodeList) {
        this.countryCodeList = countryCodeList;
    }

    public void setCountrycode(String countrycode) {
        this.countrycode = countrycode;
    }

    public void setCountryList(List countryList) {
        this.countryList = countryList;
    }

    public void setFirstName(String firstName) {

        this.firstName = firstName;
    }

    public void setLastName(String lastName) {

        this.lastName = lastName;
    }

    public void setPassword(String password) {

        this.password = password;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setNic(String nic) {
        this.nic = nic;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public void setEmail(String email) {

        this.email = email;
    }

    public void setMobile(int mobile) {

        this.mobile = mobile;
    }
}
